﻿
using Entity;
using Entity.DTO;
using System.Runtime.CompilerServices;
using System.Security.Principal;

namespace Bll
{
    /// <summary>
    /// 通知业务逻辑接口
    /// </summary>
    public interface INoticeBll
    {
        ///// <summary>
        ///// 创建通知
        ///// </summary>
        ///// <returns></returns>
        public bool CreateNotice(string title, string content,string userId, out string msg);

        /// <summary>
        /// 软删除通知
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public bool DeleteNotice(string id);

        /// <summary>
        /// 批量软删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        public bool DeleteNotices(List<string> ids);

        /// <summary>
        /// 根据通知id获取通知信息
        /// </summary>
        /// <param name="menuId"></param>
        /// <returns></returns>
        public object GetNoticeById(string menuId);


        /// <summary>
        /// 获取通知集合
        /// </summary>
        public object GetNoticeList(string title, int page, int limit, out int count);


        /// <summary>
        /// 更新通知
        /// </summary>
        /// <returns></returns>
        public bool UpdateNotice(string noticeId, string title, string content,out string msg);

    }
}